package com.ruoyi.question.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.question.enums.QuestionTypeEnum;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * 题目对象 q_question
 *
 * @author zouhao
 * @date 2024-09-11
 */
@Data
public class QQuestion implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /** 问题 */
    @Excel(name = "问题")
    private String questionName;

    /** 问题类型 */
    @Excel(name = "问题类型")
    private QuestionTypeEnum questionType;

    /** 选项A */
    @Excel(name = "选项A")
    private String a;

    /** 选项B */
    @Excel(name = "选项B")
    private String b;

    /** 选项C */
    @Excel(name = "选项C")
    private String c;

    /** 选项D */
    @Excel(name = "选项D")
    private String d;

    @Excel(name = "选项E")
    private String e;

    @Excel(name = "选项F")
    private String f;

    /** 选项答案 */
    @Excel(name = "选项答案")
    private String answer;

    /** 题目顺序(升序排列) */
    @Excel(name = "题目顺序(升序排列)")
    private Integer sort;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
